package cn.topkinson.es.etl.controller;

import cn.topkinson.es.etl.service.MainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author huangzihao
 * @Date 2021/1/22 20:41
 */

@RestController
@RequestMapping("/position")
public class PositionController {

    @Autowired
    private MainService mainService;

    @GetMapping("/search")
    public List<HashMap> action(String name){
        return mainService.search_position(name);
    }
}
